-- GENERATED SPELL FOR [Dark Iron Slaver] --


function spell0_5844(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5844', 2300, 1)
end

function spell1_5844(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(11977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5844', 15000, 1)
end

function Sorts_5844(pUnit, Event)
local choix_sorts_5844 = math.random(0, 1)
if choix_sorts_5844 == 0 then
pUnit:RegisterEvent('spell0_5844', 1, 1)
end
if choix_sorts_5844 == 1 then
pUnit:RegisterEvent('spell1_5844', 1, 1)
end
end

function mob5844_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5844', math.random(1500, 3000), 1)
end

function mob5844_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5844_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5844_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5844, 1, 'mob5844_Action')
RegisterUnitEvent(5844, 2, 'mob5844_Leave')
RegisterUnitEvent(5844, 3, 'mob5844_Kill')
RegisterUnitEvent(5844, 4, 'mob5844_Die')
